//package com.coolbi.onsupai.core.test;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//import org.apache.log4j.Logger;
//import org.junit.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
//
//import com.coolbi.onsupai.core.biz.RefundGoodsBiz;
//import com.coolbi.onsupai.core.entity.RefundGoods;
//
//@ContextConfiguration(locations = { "classpath*:/spring/applicationContext*.xml" })
//public class RefundGoodsTestCase extends AbstractJUnit4SpringContextTests {
//
//	private static final Logger log = Logger.getLogger(RefundGoodsTestCase.class);
//	
//	@Autowired
//	private RefundGoodsBiz refundGoodsBiz;
//	public void setRefundGoodsBiz(RefundGoodsBiz refundGoodsBiz) {
//		this.refundGoodsBiz = refundGoodsBiz;
//	}
//	
//	/*@Test
//	public void testSave() throws Exception {
//		RefundGoods refundGoods = new RefundGoods();
//		refundGoods.setRefundReason("dsds损");
//		refundGoods.setHandleType(1);
//		refundGoods.setOrderId(2L);
//		refundGoodsBiz.save(refundGoods);
//		log.info("refundGoods.id------------->" + refundGoods.getId());
//	}*/
//	
//	/*@Test
//	public void testDelete() throws Exception {
//		refundGoodsBiz.delete(7);
//	}*/
//	
//	/*@Test
//	public void testUpdate() throws Exception {
//		RefundGoods refundGoods = new RefundGoods();
//		refundGoods.setId(1L);
//		refundGoods.setRefundReason("That is too expensive!");
//		refundGoodsBiz.update(refundGoods);
//	}*/
//	
//	/*@Test
//	public void testGet() throws Exception {
//		RefundGoods refundGoods = refundGoodsBiz.get(1);
//		log.info("refundGoods.refundReason---------->" + refundGoods.getRefundReason());
//	}*/
//	
//	/*@Test
//	public void testList() throws Exception {
//		List<RefundGoods> list = refundGoodsBiz.list();
//		log.info("list.size-------------->" + list.size());
//	}*/
//	
//	/*@Test
//	public void testListByPage() throws Exception {
//		List<RefundGoods> list = refundGoodsBiz.listByPage(0, 5);
//		log.info("list.size-------------->" + list.size());
//	}*/
//	
//	/*@Test
//	public void testListByParameter() throws Exception {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("orderId", 1);
//		List<RefundGoods> list = refundGoodsBiz.find(parameter);
//		log.info("list.size-------------->" + list.size());
//	}*/
//	
//	/*@Test
//	public void testListByParameterPage() throws Exception {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("orderId", 1);
//		List<RefundGoods> list = refundGoodsBiz.findByPage(parameter, 0, 2);
//		log.info("list.size-------------->" + list.size());
//	}*/
//	
//	/*@Test
//	public void testSearch() throws Exception {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("refundReason", "损坏");
//		List<RefundGoods> list = refundGoodsBiz.search(parameter, 0, 2);
//		log.info("list.size-------------->" + list.size());
//	}*/
//	
//	/*@Test
//	public void testCount() throws Exception {
//		log.info("count---------->" + refundGoodsBiz.count());
//	}*/
//	
//	/*@Test
//	public void testCountByParameter() throws Exception {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("orderId", 1);
//		log.info("count---------->" + refundGoodsBiz.count(parameter));
//	}*/
//	
//	/*@Test
//	public void testCountByKeyWord() throws Exception {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("refundReason", "损坏");
//		log.info("count---------->" + refundGoodsBiz.countByKeyWord(parameter));
//	}*/
//}
